package com.ai.common.util;

import java.util.Calendar;

public class UserComfirmUtil {

	
	
	/**
     * 判断用户数据库中的标识
     * @param confirmFlag
     * @return
     */
    public static  boolean checkConfirmFlag(int confirmFlag){
        Calendar c = Calendar.getInstance();
        //当前年份
        int year = c.get(Calendar.YEAR);
        boolean isNeedConfirm = false;
        if(year>=confirmFlag){
            isNeedConfirm = true;
        }else{
            //当前年份小于数据库标识说明做过学籍确认 返回false
            isNeedConfirm = false;
        }
        return isNeedConfirm;
    }
    
    
    public static void main(String[] args) {
		System.out.println(checkConfirmFlag(0));
	}
}
